import request from '../utils/request'
//获取员工列表
// expect function getE   (){
//    return {
//       URL:""
//    }

// }
export function getEmployeeListAPI(params) {
    return request({
      url: '/sys/user',
      methods: 'get',
      params
    })
  }
//新增员工
  export function addEmployeeAPI(data) {
    return request({
      method: 'post',
      url: '/sys/user',
      data
    })
  }
  //删除员工
  export function delEmployeeAPI(id) {
    return request({
      method: 'delete',
      url: `/sys/user/${id}`
    })
  }

  //给员工分配保存角色
  export function assignRolesAPI(data) {
    return request({
      url: '/sys/user/assignRoles',
      data,
      method: 'put'
    })
  }